<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/4/20
  Time: 20:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>编辑鲜花产品</title>
    <base href="http://localhost:8080/onlineflower/">
    <%@include file="/page/comment/head.jsp"%>
    <link rel="stylesheet" type="text/css" href="static/css/form.css">
</head>
<body>
<%@include file="/page/enterprise/head_nav.jsp"%>
<div id="content">
    <form action="enterprise/flowerServlet" method="post">
        <input type="hidden" name="action" value="${empty param.flowerid?"add":"update"}">

        <div class="form-group">
            <label>鲜花名称</label>
            <input type="text" class="form-control input-lg" name="flower_name" value="${requestScope.flower.flower_name}" >
        </div>
        <div class="form-group">
            <label>鲜花价格</label>
            <input type="text" class="form-control input-lg" name="price" value="${requestScope.flower.price}">
        </div>
        <div class="form-group">
            <label>鲜花介绍</label>
            <input type="text" class="form-control input-lg" name="introduce" value="${requestScope.flower.introduce}" >
        </div>
        <div class="form-group">
            <label>库存</label>
            <input type="text" class="form-control input-lg" name="stock" value="${requestScope.flower.stock}" >
        </div>
        <div class="form-group">
            <label>鲜花类别</label>
            <%--<input type="text" class="form-control input-lg" name="fclassid" value="${requestScope.flower.fclassid}" >--%>
            <select id="fclass" class="form-control input-lg" name="fclassid">
                <option value="${requestScope.flower.fclassid}" selected:disabled style="diaplay:none">${requestScope.flower.fclassid}</option>
                <option value="1">公仔</option>
                <option value="2">玫瑰</option>
                <option value="3">满天星</option>
                <option value="4">向日葵</option>
                <option value="5">雏菊</option>
                <option value="6">勿忘我</option>
                <option value="7">风信子</option>
                <option value="8">木棉花</option>
                <option value="9">绣球花</option>
                <option value="10">水仙花</option>
                <option value="12">绿植</option>
                <option value="11">开张</option>
            </select>
        </div>
        <input type="hidden" name="flowerid" value="${requestScope.flower.flowerid}">
       <%-- <input type="hidden" class="form-control" name="enterpriseid" value="${requestScope.flower.enterpriseid}" >--%>
        <button type="submit" class="btn btn-secondary btn-lg btn-block"><span class="glyphicon glyphicon-send"></span>  Submit</button>
    </form>
</div>
</body>
<script>
    var fclass=document.getElementById("fclass");
</script>
</html>
